package com.heima.behavior.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * APP点赞行为表
 * </p>
 *
 * @author HM
 * @since 2022-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ApLikesBehavior extends Model<ApLikesBehavior> {

private static final long serialVersionUID=1L;

    private Long id;

    /**
     * 文章ID
     */
    private Long articleId;

    /**
     * 用户id
     */
    private Integer apUserId;

    /**
     * 设备号
     */
    private String equipmentId;

    /**
     * 点赞内容类型
            0文章
            1动态
     */
    private Integer type;

    /**
     *  1点赞     0取消点赞
     */
    private Boolean operation;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 修改时间
     */
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
